Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | import BaseVue from 'vue' |
||
11 | export function addVueWithPlugin(t, options) { |
||
12 | const Vue = t.context.Vue = BaseVue.extend() |
||
13 | |||
14 | // Because we're installing onto extended vue instance copy global methods to new instance |
||
15 | Vue.version = BaseVue.version |
||
16 | Vue.util = BaseVue.util |
||
17 | Vue.set = BaseVue.set |
||
18 | Vue.delete = BaseVue.delete |
||
19 | Vue.nextTick = BaseVue.nextTick |
||
20 | Vue.config = BaseVue.config // Not cloned |
||
21 | Vue.test = t |
||
22 | // To reference the right Vue instance |
||
23 | Vue.mixin = function (mixin) { |
||
24 | Vue.options = Vue.util.mergeOptions(Vue.options, mixin) |
||
25 | } |
||
26 | |||
27 | BaseVue.use.call(Vue, {install: VueSyncersFeathers.install}, options) |
||
28 | } |
||
29 | |||
39 |